package Map;

import java.util.Comparator;
import java.util.Map;
import java.util.TreeMap;

public class InfoDemo2 {
    public static void main(String[] args) {
        Map<info,String>  map=new TreeMap<>(( o1,  o2) ->o1.getAge()- o2.getAge() );///简化后的代码



        map.put(new info("Libai",12,19.934),"非常好");
        map.put(new info("Libi",132,19.93),"非常坏");
        map.put(new info("Libai",142,195.9),"非常飞飞飞飞飞好");
        map.put(new info("Libai",123,129.9),"非常23好");
        System.out.println(map);

    }

}
